﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Header
{
    [ServiceContract]
    public interface IReceiptPayment
    {
        [OperationContract]
        void AddVoucher(Receipt voucher);

        [OperationContract]
        void AddVoucher(Payment voucher);

        [OperationContract]
        void UpdateVoucher(Receipt newvoucher);

        [OperationContract]
        void UpdateVoucher(Payment newvoucher);

        [OperationContract]
        void DeleteVoucher(Receipt voucher);

        [OperationContract]
        void DeleteVoucher(Payment voucher);

        [OperationContract]
        Object[] SearchVoucher(VoucherSearch[] searches);
    }
}
